package com.haobo.dao;

import com.haobo.pojo.User;

import java.util.List;

/**
 * ClassName:UserDao
 * Package:com.haobo.dao
 * Description:
 *
 * @Date:2021/5/28 20:52
 * @Author:haobo
 */
public interface UserDao {
    List<User> findAll();

    Long userAdd(User user);

    void urAdd(Long id, Long[] roleIds);

    void delUserRoleRel(Long userId);

    void delUser(Long userId);

    User findByUsernameAndPassword(String username, String password);
}
